home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / ZoomedVideo.a < prev   
Encoding:
Text File  |  1998-02-12  |  3.8 KB  |  107 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ZoomedVideo.a
  3. ;
  4. ;    Contains:    PC Card Family Zoomed Video Driver Interface
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1996-1998 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__ZOOMEDVIDEO__') = 'UNDEFINED' THEN
  19. __ZOOMEDVIDEO__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__DEVICES__') = 'UNDEFINED' THEN
  25.     include 'Devices.a'
  26.     ENDIF
  27.  
  28.  
  29. ;  Control codes 
  30.  
  31.  
  32. cscZVVideoEnable                EQU        2                    ; Used to enable or disable ZV Video
  33. cscZVSetCurrentAnalogValue        EQU        3                    ; Used to set brightness, contrast, etc.
  34. cscZVSetInput                    EQU        9                    ; Set video source to selected input
  35. cscZVSetInputStandard            EQU        11                    ; Set the input to NTSC, PAL, or SECAM
  36. cscZVGetMaxSourceRect            EQU        12                    ; Get Maximum Source Rect
  37. ;  Status codes
  38.  
  39. cscZVGetVideoEnable                EQU        2                    ; Indicates whether ZV Video is enabled
  40. cscZVGetCurrentAnalogValue        EQU        3                    ; Used to get brightness, contrast, etc.
  41. cscZVGetDefaultAnalogValue        EQU        4
  42. cscZVGetVSyncState                EQU        5                    ; Used to look for a Vertical Sync on ZV Video
  43. cscZVGetInfo                    EQU        6                    ; Returns the ZV Information
  44. cscZVGetInputFlags                EQU        7                    ; Returns the input flags.
  45. cscZVGetNumberOfInputs            EQU        8                    ; Returns the number of video inputs
  46. cscZVGetInput                    EQU        9                    ; Zero-based input number
  47. cscZVGetInputFormat                EQU        10                    ; Returns whether input is compsite/s-video
  48.  
  49.  
  50. ;  -----------------------------------------------------------------
  51. ;   Additional parameters for csInfoZV control call
  52. ;      A pointer to ZVInfo is passed in csParam[0] (and csParam[1])
  53. ;      which must be filled by the driver in response to this call.
  54.  
  55.  
  56.  
  57. ; typedef UInt32                         ZVFeatures
  58.  
  59.  
  60. kZVHasAudio                        EQU        $01
  61. kZVHasTVTuner                    EQU        $02
  62. kZVHasContrast                    EQU        $00010000
  63. kZVHasBrightness                EQU        $00020000
  64. kZVHasSharpness                    EQU        $00040000
  65. kZVHasSaturation                EQU        $00080000
  66. kZVHasHue                        EQU        $00100000
  67.  
  68. ZVInfo                    RECORD 0
  69. features                 ds.l    1                ; offset: $0 (0)
  70. currentFlags             ds.l    1                ; offset: $4 (4)
  71. activeRect                 ds        Rect            ; offset: $8 (8)
  72. isInterlaced             ds.b    1                ; offset: $10 (16)
  73. filler                     ds.b    1                ; offset: $11 (17)
  74. reserved1                 ds.l    1                ; offset: $12 (18)
  75. reserved2                 ds.l    1                ; offset: $16 (22)
  76. sizeof                     EQU *                    ; size:   $1A (26)
  77.                         ENDR
  78. ZVFlagRecord            RECORD 0
  79. csFlag                     ds.b    1                ; offset: $0 (0)
  80. filler                     ds.b    1                ; offset: $1 (1)
  81. sizeof                     EQU *                    ; size:   $2 (2)
  82.                         ENDR
  83.  
  84. ;  -----------------------------------------------------------------
  85. ;   Additional definitions for "AnalogCtlZV" control calls
  86. ;      A pointer to a ZVSetAnalogControlParam is passed to the driver
  87. ;      whenever the system needs to adjust one of the analog settings.
  88.  
  89.  
  90. ; typedef UInt16                         ZVAnalogControlSelector
  91.  
  92.  
  93. kZVContrast                        EQU        1                    ; Range:  0x0 <= no change to image, larger values increase the contrast
  94. kZVBrightness                    EQU        2                    ; Range:  0x0 <= darkest setting, 0xffff = lightest setting
  95. kZVSharpness                    EQU        3                    ; Range:  0x0 <= no sharpness filtering, 0xffff <= full sharpness filtering
  96. kZVSaturation                    EQU        4                    ; Range:  0x0 <= min saturation, 0xffff <= max saturation        
  97. kZVHue                            EQU        5                    ; Range:  0x0 <= -180º shift in hue, 0xffff <= 179º shift, 0x8000 <=0º shift
  98. kZVBlackLevel                    EQU        6                    ; Range:  0x0 <= max black, 0xffff <= min black level
  99. kZVWhiteLevel                    EQU        7                    ; Range:  0x0 <= min white, 0xffff <= max white level
  100. ZVAnalogControlRecord    RECORD 0
  101. whichControl             ds.w    1                ; offset: $0 (0)
  102. value                     ds.w    1                ; offset: $2 (2)
  103. sizeof                     EQU *                    ; size:   $4 (4)
  104.                         ENDR
  105.     ENDIF ; __ZOOMEDVIDEO__ 
  106.  
  107.